package com.ycl.bookstore.service;

import com.ycl.bookstore.common.Result;
import com.ycl.bookstore.pojo.ShoppingCart;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *
 */
public interface ShoppingCartService extends IService<ShoppingCart> {

    /**
     * 查询购物车列表
     * @return
     */
    Result getShopList(String title,Long pageNo,Long pageSize);

    /**
     * 加入购物车
     * @param bookId
     * @return
     */
    Result addShopCart(String bookId);

    /**
     * 取消购物车
     * @param bookId
     * @return
     */
    Result cancelShopCart(Long bookId);

    /**
     * 清除购物车
     * @return
     */
    Result clearShopCart();

}
